home *** CD-ROM | disk | FTP | other *** search
- PROGRAM first_procedure_call;
-
- VAR count : INTEGER;
-
- PROCEDURE write_a_header;
- BEGIN
- WRITELN('This is the header');
- END;
-
- PROCEDURE write_a_message;
- BEGIN
- WRITELN('This is the message and the count is',count:4);
- END;
-
- PROCEDURE write_an_ending;
- BEGIN
- WRITELN('This is the ending message');
- END;
-
- BEGIN (* main program *)
- write_a_header;
- FOR count := 1 TO 8 DO write_a_message;
- write_an_ending;
- END. (* of main program *)